# author = '李天宝'
# write in '2020/8/5 0005 9:45'

from rest_framework.views import APIView
from rest_framework.response import Response

class Banner(APIView):
    """
    只是返回轮播图的url链接
    """
    def get(self,request):
        banners=['/banner/banner%d.jpg'%i for i in range(1,8)]
        return Response({
            'code':200,
            'detail':banners
        })